package grape.composite.rest.activity.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 活动表
 * </p>
 *
 * @author yangwei
 * @since 2020-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="活动添加表单对象")
public class ActivityCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="活动编号不能为空")
    @ApiModelProperty(value = "活动编号",required = true)
    private String code;

    @NotEmpty(message="活动标题不能为空")
    @ApiModelProperty(value = "活动标题",required = true)
    private String title;

    @NotEmpty(message="标题图不能为空")
    @ApiModelProperty(value = "标题图",required = true)
    private String titleUrl;

    @NotEmpty(message="活动简介不能为空")
    @ApiModelProperty(value = "活动简介",required = true)
    private String introduced;

    @ApiModelProperty(value = "主办方")
    private String sponsor;

    @ApiModelProperty(value = "主办方链接")
    private String sponsorLink;

    @NotEmpty(message="作者不能为空")
    @ApiModelProperty(value = "作者",required = true)
    private String author;

    @NotNull(message="开始时间不能为空")
    @ApiModelProperty(value = "开始时间",required = true)
    private Long startAt;

    @NotNull(message="结束时间不能为空")
    @ApiModelProperty(value = "结束时间",required = true)
    private Long endAt;

    @NotEmpty(message="活动地点不能为空")
    @ApiModelProperty(value = "活动地点",required = true)
    private String address;

    @ApiModelProperty(value = "联系方式")
    private String contact;

    @NotEmpty(message="场地类型不能为空")
    @ApiModelProperty(value = "场地类型",required = true)
    private String placeTypeDictId;

    @ApiModelProperty(value = "活动声明")
    private String activityStatement;

    @NotNull(message="序号不能为空")
    @ApiModelProperty(value = "序号，从小到大排序",required = true)
    private Integer seq;

    @ApiModelProperty(value = "报名链接")
    private String enrollLink;

    @NotEmpty(message="分类不能为空")
    @ApiModelProperty(value = "分类",required = true)
    private String categoryDictId;

    @NotEmpty(message="内容不能为空")
    @ApiModelProperty(value = "内容",required = true)
    private String content;



}
